export function showStartEndInfo(u8a: Uint8Array, len: number = 100) {
  console.log(`total len:${u8a.length}`)
  const start = u8a.subarray(0, len);
  const end = u8a.subarray(u8a.length - len);
  console.log('start 100 bytes info')
  showU8aNumbers(start);
  console.log('last 100 bytes info')
  showU8aNumbers(end);
}

export function showU8aNumbers(u8a: Uint8Array) {
  for (let i = 0; i < u8a.length; i++) {
    const n = u8a[i];
    console.log(`index ${i}: ${n}`);
  }
}